package com.ruyuan2020.im.cjlib;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@ComponentScan("com.ruyuan2020.im.cjlib")
//@Configuration
public class Config {

    @Bean
    public E getE() {
        System.out.println("get class E");
        return new E();
    }

    @Bean
    public F getF() {
        getE(); // Ensure E bean is created before F bean
        System.out.println("get class F");
        return new F();
    }

}
